import { $get, $post } from "@js/request"
import { formatCaseDataLicenseAndMobile } from "@src/assets/js/tool"


// 保存答辩
export async function createDefince (data) {
  const res = await $post('/api/xd/defence', data)
  return res.data
}


// 获取案件详情请求请求
export async function getCaseDetailRequest (caseid) {
  const res = await $get(`/api/xd/case/partyCaseRead/${caseid}`)
  formatCaseDataLicenseAndMobile(res.data)
  return res.data
}
